﻿using System.Web.Http;
using Newtonsoft.Json.Serialization;

namespace NewsSystem.WebApi
{
    public static class JsonConfig
    {
        public static void CustomizeConfig(HttpConfiguration config)
        {
            var json = config.Formatters.JsonFormatter;
            json.SerializerSettings.ContractResolver =
                new CamelCasePropertyNamesContractResolver();
        }
    }
}